/**
 * 
 */
package pl.edu.agh.to;

/**
 * @author karulis
 * 
 */
public class Participant {
	private String name;
	private String surname;

	/**
	 * @param name
	 * @param surname
	 */
	public Participant(String name, String surname) {
		super();
		this.name = name;
		this.surname = surname;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the surname
	 */
	public String getSurname() {
		return surname;
	}

	/**
	 * @param surname
	 *            the surname to set
	 */
	public void setSurname(String surname) {
		this.surname = surname;
	}

	@Override
	public String toString() {
		return getName() + " " + getSurname();
	}

	@Override
	public boolean equals(Object course) {
		return this.toString().equals(course.toString());
	}

	@Override
	public int hashCode() {
		return this.toString().hashCode();
	};

}
